<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateFolhaSalarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_idFolha}" for="idFolha" />
                    <h:inputText id="idFolha" value="#{folhaSalarioController.selected.idFolha}" title="#{bundle.CreateFolhaSalarioTitle_idFolha}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_idFolha}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_codFolha}" for="codFolha" />
                    <h:inputText id="codFolha" value="#{folhaSalarioController.selected.codFolha}" title="#{bundle.CreateFolhaSalarioTitle_codFolha}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_codFolha}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_detalheFolha}" for="detalheFolha" />
                    <h:inputText id="detalheFolha" value="#{folhaSalarioController.selected.detalheFolha}" title="#{bundle.CreateFolhaSalarioTitle_detalheFolha}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_detalheFolha}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_mes}" for="mes" />
                    <h:inputText id="mes" value="#{folhaSalarioController.selected.mes}" title="#{bundle.CreateFolhaSalarioTitle_mes}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_mes}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_ano}" for="ano" />
                    <h:inputText id="ano" value="#{folhaSalarioController.selected.ano}" title="#{bundle.CreateFolhaSalarioTitle_ano}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_ano}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_estado}" for="estado" />
                    <h:inputText id="estado" value="#{folhaSalarioController.selected.estado}" title="#{bundle.CreateFolhaSalarioTitle_estado}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_estado}"/>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_dataAbertura}" for="dataAbertura" />
                    <h:inputText id="dataAbertura" value="#{folhaSalarioController.selected.dataAbertura}" title="#{bundle.CreateFolhaSalarioTitle_dataAbertura}" required="true" requiredMessage="#{bundle.CreateFolhaSalarioRequiredMessage_dataAbertura}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateFolhaSalarioLabel_dataFecho}" for="dataFecho" />
                    <h:inputText id="dataFecho" value="#{folhaSalarioController.selected.dataFecho}" title="#{bundle.CreateFolhaSalarioTitle_dataFecho}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{folhaSalarioController.create}" value="#{bundle.CreateFolhaSalarioSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{folhaSalarioController.prepareList}" value="#{bundle.CreateFolhaSalarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateFolhaSalarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
